package com.example.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chat.domain.entity.ChatMessage;
import com.example.chat.result.Result;

public interface ChatService extends IService<ChatMessage> {

    Result getChatList();

    Long saveMessage(String message,long sender,Long receiver);

    String forWard(Long msgId,String message,Long sender,Long receiver);

    Result tipClearOrReduce(Long id,Integer type);

    Result queryContent(Long userId, Long timestamp, Integer offset);

    Result deleteChatListById(Long id);
}
